package com.ledim.bean;

import java.io.Serializable;
import org.json.JSONException;
import org.json.JSONObject;

public class LedimJoinBean implements Serializable {

    public int roomId;
    public String token;
    public int uid;
    /**
     * #客户端类型，0-未知，1-PC，2-TV，3-手机 (O)
     */
    public int cType;
    public String cVersion;
    public int groupMode;
    /**
     * 订阅用户人数(O) 1：订阅用户数目 0：不订阅用户数目
     */
    public int subUserNum = 0;

    public JSONObject toJson() throws JSONException {
        JSONObject localItemObject = new JSONObject();
        localItemObject.put("roomId", roomId);
        localItemObject.put("token", token);
        localItemObject.put("uid", uid);
        localItemObject.put("cType", cType);
        localItemObject.put("cVersion", cVersion);
        localItemObject.put("groupMode", groupMode);
        localItemObject.put("subUserNum", subUserNum);
        return localItemObject;
    }

}
